﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using ToDoClear.Motion;

namespace ToDoClear
{
    public enum MainState {
        //
        IdleState,
        //上下拖动
        VerDrag,
        //左右拖动
        HerDrag,

        Scroll,

        //两手往外打开
        OpenItem,
        //两手往内挤
        CloseList,
        //点击后，打开
        ClickOpen,
        Edit,
        None,
    
    };

    public enum SubState { 
    
    //往上进入编辑动画
    EditTopAni,
    //正在编辑item中的文字
    Editing,
    //往下退出编辑
    EditBottomAni,

    /*scroll*/
    ScrollTop,
    ScrollBottom,
    TopOverResume,
    BottomOverResume,

    };


    public class ToDoContext
    {
       public  MainState state;
       public  SubState substate;

       public Point DragStartPoint;
       public double DragStartOffset;
       public ScrollMotion scrollMotion;


       public ToDoContext()
       {
           state = MainState.IdleState;
           DragStartPoint = new Point(0, 0);
           DragStartOffset = 0;
       }
    }
}
